package com.example.layui.mapper;

import com.example.layui.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {
    int createOrder(Order order);


    int updateBangkeId(Order order);

    Integer count(@Param("order") Order order,@Param("bangkeId") Integer bangkeId);

    List<Order> queryByPage(@Param("order") Order order,@Param("bangkeId") Integer bangkeId,@Param("from") int from,@Param("to") Integer to);
}
